/*****************************************************************
**                                                             	**
**  Copyright (C) 2004 Amlogic,Inc.                            	**
**  All rights reserved                                        	**
**        Filename : aw_bluetooth.h /Project:AVOS  				** 
**        Revision : 1.0                                       	**
**                                                             	**
*****************************************************************/
#ifndef __AW_BLUETOOTH_H
#define __AW_BLUETOOTH_H
#include <Drivers/bluetooth/bt_customer.h>

#define BLUETOOTH_DISABLE           0
#define BLUETOOTH_ENABLE            1

#define BLUETOOTH_FTP				0
#define BLUETOOTH_OPP				1
#define BLUETOOTH_AUDIO			    2

#define MAX_LINK_KEY_NUM            2

extern int gBluetoothFlag;

#ifdef ENABLE_BLUETOOTH_OPP
extern int opp_copy_flag;
extern void BTShowFileTransferWin(unsigned char mode);
extern void BTHideFileTransferWin(unsigned char mode);
extern void BTMainGuiOppRefreshFilePara(PHWND hwnd);
#endif

#ifdef ENABLE_BLUETOOTH_FTP
extern char btftp_pathname[16];
extern int BtSendFtpCmd(char *name,unsigned cmd, void *arg);
extern void ResetCurPathNode(void);
#endif

#ifdef ENABLE_BLUETOOTH_AUDIO
extern bdaddr_t BtAudioDevAddr;
extern int BtAudioCheckConnection(void);
#endif

extern char nand_pathname[16];
extern char nand_name[16];
extern int IfBtDeviceInsert(void);
extern int BtSendDevCmd(unsigned cmd, void *arg);
extern char* GetBtLinkKeyAddr(void);
extern void InitBtLinkKey(void);
extern void SetBtStatus(unsigned char type,unsigned short status);
extern unsigned short GetBtStatus(unsigned char type);
extern void AWBTNotificationProcess(AWMSG *pMsg);
extern void AWBTBroadCastProcess(AWMSG *pMsg);

#endif//__AW_BLUETOOTH_H